<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  .div1 {
    width: 200px;
    height: 200px;
    background-color: red;
  }
  .div2 {
    width: 200px;
    height: 200px;
    background-color: green;
    /* 相对于原本位置向右移动200px向下移动400px */
    transform: translate(200px, 400px);
  }
  .div3 {
    width: 200px;
    height: 200px;
    background-color: pink;
    /* 相对于原有位置顺时针旋转45度 */
    transform: rotate(45deg);
  }
  .div4 {
    width: 200px;
    height: 200px;
    background-color: yellow;
    /* 放大x y 或缩小 x y */
    /* transform: scale(2, 3); */
    /* transform: scale(0.5, 1); */
    transform: scale(0.5);

  }
</style>
<body>
  <div class="div1"></div>
  <div class="div2"></div>
  <div class="div3"></div>
  <div class="div4"></div>
  
</body>
</html>